<!doctype html>
<html class="no-js">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=320,height=device-height,initial-scale=1.0,maximum-scale=1.3,user-scalable=no">
		<title>小马网-以信任促成交易</title>
		<link rel="stylesheet" type="text/css" href="css/base.css">
		<link rel="stylesheet" type="text/css" href="css/app.css">
		<link rel="stylesheet" type="text/css" href="css/index.css" media="all">
		<link rel="stylesheet" type="text/css" href="css/login.css"/>
		<link rel="shortcut icon" href="img/icon/favicon.ico">
	</head>
	<body>

    <div id="loginForm" class="f1 f1-login bc-fff auto">
        <legend class="tac">
          <p>登录</p>
          <div class="login-tab">
              <div id="#form1" class="tab emailtab active">
                <i></i>
                <span>用户</span>
              </div>
              <div id="#form2" class="tab teltab ">
                <i></i>
                <span>手机</span>
              </div>
          </div>
        </legend>
        <p id="errorMsg" class="s_msg tac j-vali-error">




</p>
        <form id="form1" class="j-vali-form tab-c active" method="POST" action="{{ route('login') }}" autocomplete="off" novalidate="novalidate">
					{{ csrf_field() }}
            <fieldset>
                <input name="csrfmiddlewaretoken" value="zL99pZXeWIF4yPWjgDCVckqVy4hHqm4a" type="hidden">
                <input name="login_type" value="name" type="hidden">
                <div class="form-body">
                  <p class="s_fc">
                  	<label>用户</label>
                  	<input placeholder="用户名" tabindex="1" class="s_int" name="name" value="" required="" type="email">
                  </p>
                  <p class="s_fc s_psw">
                  	<label>密码</label>
                  	<input placeholder="密码" tabindex="2" class="s_int" name="password" value="" required="" type="password">
                  		<!--<span class="s_r_box">
                  			<a href="##" title="忘记密码？">忘记密码？</a>
                  		</span>-->
                  </p>
                  <p class="s_fc s_captcha">
                  	<label>验证码</label>
                  	<input tabindex="3" placeholder="验证码" class="s_int" name="captcha" maxlength="4" minlength="4" size="4" required="" value="" type="text">
										<img src="{{captcha_src('flat')}}" id="captcha_send_msg"
																	 onclick="this.src='{{captcha_src('flat')}}?' + new Date().getTime()" title="换一张">
										 @if ($errors->has('captcha'))
												 <span class="help-block">
														 <strong style="color:red;">{{ $errors->first('captcha') }}</strong>
												 </span>
										 @endif
                  </p>

                  <p class="s_fc mt30 mb20">
                  	<button type="submit" tabindex="4" class="s_bt">登录</button>
                  </p>
                  <p class="tac mt10">
                  	<a href="{{ route('register') }}">立即注册</a>
                  </p>
                </div>
            </fieldset>
        </form>
        <form id="form2" class="j-vali-form tab-c" method="POST" action="{{ route('login') }}" autocomplete="off" novalidate="novalidate">
					{{ csrf_field() }}
            <fieldset>
                <input name="csrfmiddlewaretoken" value="zL99pZXeWIF4yPWjgDCVckqVy4hHqm4a" type="hidden">
                <input name="login_type" value="phone" type="hidden">
                <div class="form-body">
                    <p class="s_fc">
                    	<label>手机号</label>
                    	<input id="telphone" placeholder="手机号" tabindex="1" class="s_int" name="telphone" value="" required="" type="tel">
                    </p>
                    <p class="s_fc s_captcha">
                    	<label>输入图片验证码</label>
                    	<input tabindex="2" placeholder="图片验证码" class="s_int" name="captcha" vali-message="图片验证码" maxlength="4" minlength="4" size="4" required="" value="" type="text">
											<img src="{{captcha_src('flat')}}" id="captcha_send_msg"
																		 onclick="this.src='{{captcha_src('flat')}}?' + new Date().getTime()" title="换一张">
											 @if ($errors->has('captcha'))
													 <span class="help-block">
															 <strong style="color:red;">{{ $errors->first('captcha') }}</strong>
													 </span>
											 @endif
                    </p>
                    <!-- <p class="s_fc s_dx">
                        <label>短信验证</label>
                        <input tabindex="3" placeholder="短信验证码" class="s_int" name="code" maxlength="6" minlength="4" size="6" required="" value="" type="text">
                        <a href="javascript:" id="sendMsg">发送短信验证码</a>
                        <span>60秒后重发</span>
                    </p> -->
                    <p class="s_fc mt30 mb20"><button type="submit" tabindex="4" class="s_bt">登录</button></p>
                    <p class="tac mt10">
                    	<a href="{{ route('register') }}">立即注册</a>
                    </p>
                </div>
            </fieldset>
        </form>
	</div>

	</body>
</html>
<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/login.js" type="text/javascript" charset="utf-8"></script>
